package com.bruce.spring.http.client.controller;

import com.bruce.spring.http.client.factory.TargetSelector;
import org.springframework.stereotype.Component;

/**
 * Created by bruce in 2025/6/19 13:05
 */
@Component
public class UrlManager implements TargetSelector {


    @Override
    public String select(String clusterTag) {
        if ("netty-h2c".equals(clusterTag)) {
            return "http://127.0.0.1:6688";
        }
        return "http://127.0.0.1:8082";
    }
}
